package com.mars.foodserver.service;

import com.mars.foodserver.entity.NotesLike;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wq
 * @since 2021-09-28
 */
public interface INotesLikeService extends IService<NotesLike> {


    /**
     * 点赞
     *
     * @param userId  用户ID
     * @param notesId 笔记ID
     * @param type    1 点赞 2 取消点赞
     */
    void like(Integer userId, Integer notesId, Integer type);

    /**
     * 是否点赞美食
     *
     * @param userId 用户ID
     * @param id     ID
     * @return boolean
     */
    boolean isLikeNotes(Integer userId, Integer id);
}
